Fix creating SpecFlow compat package (v3.x)#1070
Conversation
|
I compared the preview package (from https://github.com/reqnroll/Reqnroll/actions/runs/23622833511/artifacts/6134804719) with the latest, 3.3.3. There has the same amount of files and the packages looks the same to me. (Left 3.3.4i-ci, right 3.3.3)
|
ac3fa6e to
0f2339c
Compare
|
Note to self. The error is: from C:\Program Files\dotnet\sdk\10.0.204\NuGet.Build.Tasks.Pack.dll The error comes from for Interestingly these both have a duplicate as well where the targetframework is properly set... Somehow the issue roots back to |
|
Update on investigation. It seems that the target "CollectProjectReferenceDebugSymbolsForPack" that we included in Directory.Build.targets ( Reqnroll/Directory.Build.targets Lines 141 to 157 in 0f2339c But there are some generic issues as well. For example the target should include any non-pdb file to However in reality, the .pdb files are also included there:
Funnily this is not what causes this particular issue but the other include: because this causes the pdb node to be included without a target framework, which at the end causing the error. I keep investigating but if @Code-Grump has any memories about this target, please share. |
…B files as well, to successfully compile.
|
I think I have a better picture now. The target Reqnroll/Directory.Build.targets Lines 143 to 145 in 0f2339c This suppose to add the PDB files for cases when Reqnroll/Directory.Build.targets Lines 149 to 155 in 0f2339c This is adding This was used by two projects: Note that the second one sets the Please @Code-Grump have a look and comment if you are fine with this change. |


🤔 What's changed?
Fix the SpecFlow compat package
ℹ️ Please note, this isn't targeting
mainas this is a fix for 3.x. Main is already 4.x. See #1068 (comment)Build:
https://github.com/reqnroll/Reqnroll/actions/runs/23622833511 (manual as this isn't a PR to
main)⚡️ What's your motivation?
#1068
🏷️ What kind of change is this?